<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="renderer" content="webkit">
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
        <meta name="format-detection" content="telephone=no, email=no"/>
        <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
        <meta name="MobileOptimized" content="320">
        <meta name="screen-orientation" content="portrait">
        <meta name="x5-orientation" content="portrait">
        <meta name="full-screen" content="yes">
        <meta name="x5-fullscreen" content="true">
        <meta name="browsermode" content="application">
        <meta name="generator" content="webStorm">
        <title>45天限时加息</title>
        <meta name="keywords" content="加息、限时抢购、45天">
        <meta name="description" content="45天加息2.8%，年化11.68%限时抢">
        <script>
            (function(){
                var deviceWidth = document.documentElement.clientWidth;
                document.documentElement.style.fontSize = deviceWidth / 3.75 + 'px';
                // 页面宽度发生变化时动态生成根字体尺寸
                window.onresize = function () {
                    var deviceWidth = document.documentElement.clientWidth;
                    document.documentElement.style.fontSize = deviceWidth / 3.75 + 'px';
                }
            })();
        </script>
        <style>
            body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { padding: 0; margin: 0; }
            body{ font-family: "Microsoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif; -webkit-tap-highlight-color: rgba(0,0,0,0); outline: none; overflow-x: hidden; background: #effff4;}
            ul,li,ol{ list-style: none;}
            img{ border: none;}
            a{ text-decoration: none;}
            a:hover{ text-decoration: none;}
            .w100{ display: block; width: 100%;}
            .springContainer{ width: 100%;}
            .springHeader{ width: 100%; position: relative; z-index: 10;}
            .springMain{ width: 91.4%; margin: -5% auto 0 auto; border: 3px solid #1ea681; background: #fff; border-radius: 0 0 10px 10px; box-sizing: border-box; padding: 10% 5% 5% 5%;}
            .springMainTop{ position: relative;}
            .rate,.term{ font-size: 0.22rem;}
            .rate p,.term p{ font-size: 0.16rem; color: #bb7c40;}
            .rate span,.term span{ color: #ff4f00;}
            .rate{ position: relative; width: 68%;}
            .rate:after{ content: ''; width: 1px; height: 80%; position: absolute; right: 0; bottom: 0; background: #f2e2d3;}
            .term{ position: absolute; right: 0; top: 0;}
            .springButton{ width: 80%; margin: 10px auto 0 auto; position: relative;}
            .springButton i{ display: block; width: 100%;}
            .springButton a{
                display: block; width: 100%; position: absolute; left: 0; top: 0; z-index: 100; height: 100%; font-size: 0.22rem; color: #fff8e2; text-align: center;
            }
            .springButton a font{
                display: block; width: 100%; position: absolute; left: 0; top: 50%;
                -webkit-transform: translate(0,-60%); transform: translate(0,-60%);
            }
            .springRule{ width: 91.4%; margin: 20px auto 0 auto;}
            .springRule h2{ text-align: center; font-size: 0.18rem; color: #149d7e;}
            .springRuleList{ margin-top: 10px; background: #daf6e8; font-size: 0.14rem; line-height: 0.24rem; border-radius: 10px; padding: 5%; color: #74807a;}
            footer{ padding: 5% 0; text-align: center; font-size: 0.14rem; color: #888c89;}
        </style>
    </head>
    <body>
        <div class="springContainer">
            <div class="springHeader"><img src="/themes/soonmes_qzw_v2/activity/monthActivity/images/spring45/app-top.png" class="w100"></div>
            <div class="springMain">
                <div class="springMainTop">
                    <div class="rate">
                        <div><font style="font-size: 0.31rem;">8.8</font>%<span>+<font style="font-size: 0.42rem;">2.88</font>%</span></div>
                        <p>预期年化收益率</p>
                    </div>
                    <div class="term">
                        <div><span style="font-size: 0.42rem;">45</span>天</div>
                        <p>投资期限</p>
                    </div>
                </div>
                <div class="springButton">
                    <i><img src="/themes/soonmes_qzw_v2/activity/monthActivity/images/spring45/pc-btn.png" class="w100"></i>
                    <a href="javascript:void(0);" id="btn"><font></font></a>
                </div>
            </div>
            <div class="springRule">
                <h2>活动规则</h2>
                <div class="springRuleList">
                    <ul>
                        <li>1、钱内助所有用户（各客户端均可参与）；</li>
                        <li>2、活动时间：3月1日—4月30日；</li>
                        <li>3、投资活动期间发布的45天产品，享有11.68%年化收益率；</li>
                        <li>4、活动内容如有更改，将于官网公告，不再另行通知；</li>
                        <li>5、本活动最终解释权归钱内助所有。</li>
                    </ul>
                </div>
            </div>
            <footer>市场有风险，投资需谨慎</footer>
        </div>
        <script src="https://www.qianneizhu.com/themes/soonmes_qzw_v2/activity/invite/script/jquery.js"></script>
        <script src="/themes/soonmes_qzw_v2/mobile/script/sea.js"></script>
        <script>
            seajs.use(['page/buyResult']);
        </script>
        <script>
            $(function () {
                //判断是否为app
                function getUrlParam(name){
                    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
                    var r = window.location.search.substr(1).match(reg);
                    if (r != null) return true; return false;
                }
                var isApp = getUrlParam('native_view');
                function getServerDate(){
                    return new Date($.ajax({
                        async: false,
                        url:'/activity/activityBorrow.html'
                    }).getResponseHeader("Date"));
                }
                if(isApp){
                    //var nowtime = Date.parse(new Date());
                    var nowtime = Date.parse(getServerDate());// 服务器时间
                    var oneDayTime = 24*60*60*1000;
                    var exceptionDay1 = Date.parse('2018/03/03 00:00:00');
                    var exceptionDay2 = Date.parse('2018/04/30 23:59:59');
                    var nineHours = 0;
                    var timer, time;
                    var add_0 = function(n){
                        if(n >= 10){
                            return n;
                        } else{
                            return '0' + n;
                        }
                    };
                    var countDownTime = function(){
                        time -= 1000;
                        var hour = parseInt(time/(60*60*1000));
                        var minute = parseInt((time%(24*60*60*1000)%(60*60*1000))/(60*1000));
                        var second = parseInt((time%(24*60*60*1000)%(60*60*1000)%(60*1000))/1000);
                        if(second >= 0){
                            $('#btn font').html(add_0(hour) + ":" + add_0(minute) + ":" + add_0(second));
                        } else{
                            clearInterval(timer);
                            $("#btn").attr({
                                "href":"qian://openNativePage?#",
                                "data-hybrid-type":"tender"
                            }).html('<font>立即抢购</font>');
                        }
                    };
                    function whichDay(){
                        var mnowtime = new Date(nowtime);//将时间戳转换为标准格式
                        var day = mnowtime.getDay();
                        switch (day){
                            case 2:
                                time = nineHours + oneDayTime - (mnowtime.getHours() * 60 * 60 * 1000 + mnowtime.getMinutes() * 60 * 1000 + mnowtime.getSeconds() * 1000);
                                countDownTime();
                                timer = setInterval(countDownTime, 1000);
                                break;
                            case 5:
                                time = nineHours + oneDayTime - (mnowtime.getHours() * 60 * 60 * 1000 + mnowtime.getMinutes() * 60 * 1000 + mnowtime.getSeconds() * 1000);
                                countDownTime();
                                timer = setInterval(countDownTime, 1000);
                                break;
                            case 4:
                                time = nineHours + oneDayTime * 2 - (mnowtime.getHours() * 60 * 60 * 1000 + mnowtime.getMinutes() * 60 * 1000 + mnowtime.getSeconds() * 1000);
                                countDownTime();
                                timer = setInterval(countDownTime, 1000);
                                break;
                            case 1:
                                $("#btn").attr({
                                    "href":"qian://openNativePage?#",
                                    "data-hybrid-type":"tender"
                                }).html('<font>立即抢购</font>');
                                break;
                            case 3:
                                $("#btn").attr({
                                    "href":"qian://openNativePage?#",
                                    "data-hybrid-type":"tender"
                                }).html('<font>立即抢购</font>');
                                break;
                            case 6:
                                $("#btn").attr({
                                    "href":"qian://openNativePage?#",
                                    "data-hybrid-type":"tender"
                                }).html('<font>立即抢购</font>');
                                break;
                            case 0:
                                $("#btn").attr({
                                    "href":"qian://openNativePage?#",
                                    "data-hybrid-type":"tender"
                                }).html('<font>立即抢购</font>');
                                break;
                        }
                    }
                    if(nowtime<exceptionDay1){
                        time = exceptionDay1 - nowtime;
                        countDownTime();
                        timer = setInterval(countDownTime, 1000);
                    }else if(nowtime>exceptionDay1 && nowtime<exceptionDay2){
                        whichDay();
                    }else{
                        $('#btn').html('<font>活动已结束</font>');
                    }
                }else{
                    $('#btn').html('<font>立即抢购</font>');
                    $("#btn").click(function(){
                        location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.rd.qnz#opened";
                    });
                }
            });
        </script>
        <script>
            var _vds = _vds || [];
            window._vds = _vds;
            (function(){
                _vds.push(['setAccountId', 'a74544d3179583c3']);
                (function() {
                    var vds = document.createElement('script');
                    vds.type='text/javascript';
                    vds.async = true;
                    vds.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'dn-growing.qbox.me/vds.js';
                    var s = document.getElementsByTagName('script')[0];
                    s.parentNode.insertBefore(vds, s);
                })();
            })();
            var _hmt = _hmt || [];
            (function() {
                var hm = document.createElement("script");
                hm.src = "//hm.baidu.com/hm.js?c99fe1c7b690e000350f2883e671cb5c";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
        </script>
    </body>
</html>